#pragma once

#include "ImageProcessor.h"
#include "MIDIProcessor.h"

class FrameGrammar
{
public:
	FrameGrammar(MIDIProcessor* mp);
	~FrameGrammar(void);
	void processFrame(ImageProcessor* ip);
	int getMid(int x, ImageProcessor* ip);
	int getNote(int x, int y, ImageProcessor* ip);
	bool inPosition(int x, int y, ImageProcessor* ip);

private:
	MIDIProcessor* midi;
	bool striking;
	bool pedalLowered;
	int instrument;
	int lastNote;
};

